﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;

namespace Camc.Quality.TimeSetting
{
    public class GetCalendarSettingListInput : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string CalendarName { get; set; }
        /// <summary>
        /// 作息排配 0：休息、1：工作
        /// </summary>
        public int? WorkArrangement { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
